package Entidades;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="compraNoVenta")
@PrimaryKeyJoinColumn(name="idProd")
public class compraNoVenta extends Producto implements Serializable {
	private static final long serialVersionUID=1L;
	
	@OneToOne(fetch=FetchType.LAZY)
	@JoinColumn(nullable=false,name="idLote")
	private Lote lote;

}
